package com.breadenglish.cms.api.app.gateway.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import org.jsondoc.core.annotation.ApiObject;
import org.jsondoc.core.annotation.ApiObjectField;

/**
 * Created by jk on 15/12/25.
 */
@ApiObject
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public class MessageVoice {
    @ApiObjectField(description = "ID,用于排序,按id生序",required = true)
    private int id;

    @ApiObjectField(description = "时长")
    private int duration;

    @ApiObjectField(description = "语音文件名(zip包内路径+名称)",required = true)
    private String file;

    public MessageVoice() {
    }

    public MessageVoice(int id, int duration, String file) {
        this.id = id;
        this.duration = duration;
        this.file = file;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }
}
